
<link href="../css/Quantricss.css" rel="stylesheet" type="text/css">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<?php
    error_reporting(FALSE);
    require_once ("../mysql.php");
    require_once ("function_quantri.php");
    
    if(isset($_GET['idCL']))
        $idCL = $_GET['idCL'];
    $Chungloai_chitiet = Chungloai_chitiet($idCL);
    $row_chungloaichitiet = mysql_fetch_array($Chungloai_chitiet);
    
    if(isset($_POST['btnUpdate']))
    {
        ChungLoai_update($idCL);
        header("location:Sanpham_chungloai_quantri.php");
    }
?>
<form id="form1" name="form1" method="post" action=""> 
    <table width="550" border="1" align="center">
        <tr>
            <th height="39" colspan="2" align="center" bgcolor="#0000FF" scope="col">
                <span class="style1">Chủng loại </span>
        </tr>    
        <tr>
            <td width="148" height="36" align="center">TênCL</td>
            <td width="386" align="left"><label>
                    <input type="text" name="TenCL" id="TenCL" value="<?php echo $row_chungloaichitiet['TenCL']?>"/>
               </label></td>
         </tr>   
          <tr>
            <td width="148" height="36" align="center">Thứ tự</td>
            <td width="386" align="left"><label>
                    <input type="text" name="ThuTu" id="ThuTu" value="<?php echo $row_chungloaichitiet['ThuTu']?>"/>
               </label></td>
         </tr>   
         <tr>
             <td colspan="2" align ="center">
                 <label>
                     <input type="submit" name="btnUpdate" id="btnUpdate" value="Update"/>
                 </label>
              </td>   
         </tr>    
    </table>
</form>
